package cn.wolfcode.crm.web.controller;

import cn.wolfcode.crm.query.MemberTimeQueryObject;
import cn.wolfcode.crm.query.PageResult;
import cn.wolfcode.crm.service.IMemberProductTimeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("memberTime")
public class MemberProductTimeController {

    @Autowired
    private IMemberProductTimeService service;

    @RequestMapping("list")
    @ResponseBody
    public PageResult list(MemberTimeQueryObject qo){
        PageResult pageResult = service.queryPage(qo);
        return pageResult;
    }

}
